<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <body>
        <ui:composition>
            <div class="barS scroller_anchor"></div>
            <h:form id="barForm">
                <p:panel id="tabMenuPanel" styleClass="barPanel noPadding noBorder font13">
                    <p:tabMenu activeIndex="#{barBean.activeIndex}" widgetVar="barWidget" styleClass="barTabMenu noMargin noBorder" rendered="#{loginBean.selectedUser.candidate!=null}">  
                        <p:menuitem value="#{messages.Profile}" action="#{barBean.changeCandidateIndex(0)}"/>  
                        <p:menuitem value="#{messages.Edit}" action="#{barBean.changeCandidateIndex(1)}"/>   
                        <p:menuitem value="#{messages.Book}" action="#{barBean.changeCandidateIndex(2)}"/>
                        <p:menuitem value="#{barBean.notificationsOfCandidate()}" action="#{barBean.changeCandidateIndex(3)}"/>
                        <!--<p:menuitem value="#{messages.Offers}" action="#{barBean.changeCandidateIndex(4)}"/>!-->
                        <p:menuitem value="#{messages.Preferences}" action="#{barBean.changeCandidateIndex(4)}"/> 
                    </p:tabMenu>
                    <p:tabMenu activeIndex="#{barBean.activeIndex}" widgetVar="barWidget" styleClass="barTabMenu noBorder" rendered="#{loginBean.selectedUser.company!=null}">  
                        <p:menuitem value="#{messages.Edit}" action="#{tabBarBean.changeCompanyIndex(0)}"/> 
                        <p:menuitem value="#{messages.Searchs}" action="#{tabBarBean.changeCompanyIndex(1)}"/> 
                        <p:menuitem value="#{messages.Folders}" action="#{tabBarBean.changeCompanyIndex(2)}"/>
                        <p:menuitem value="#{messages.Credits}" action="#{tabBarBean.changeCompanyIndex(3)}"/>
                        <p:menuitem value="#{messages.Preferences}" action="#{tabBarBean.changeCompanyIndex(4)}"/>
                    </p:tabMenu>
                    <p:tabMenu activeIndex="#{barBean.activeIndex}" widgetVar="barWidget" styleClass="barTabMenu noMargin noBorder" rendered="#{loginBean.selectedUser.userType.idUserType==3}">  
                        <p:menuitem value="#{messages.Index}" action="#{barBean.changeAdminIndex(0)}"/>
                        <p:menuitem value="#{messages.Company}" action="#{barBean.changeAdminIndex(1)}"/>
                        <p:menuitem value="#{messages.Candidate}" action="#{barBean.changeAdminIndex(2)}"/>
                        <p:menuitem value="#{messages.PublicRelationships}" action="#{barBean.changeAdminIndex(3)}"/>
                        <p:menuitem value="#{messages.ReportedUsers}" action="#{barBean.changeAdminIndex(4)}"/>
                        <p:menuitem value="#{messages.Statistics}" action="#{barBean.changeAdminIndex(5)}"/>
                    </p:tabMenu>
                    <p:tabMenu activeIndex="#{barBean.activeIndex}" widgetVar="barWidget" styleClass="barTabMenu noMargin noBorder" rendered="#{loginBean.selectedUser.publicRelations!=null}">  
                        <p:menuitem value="#{messages.Index}" action="#{barBean.changePublicRelationsIndex(0)}"/>
                        <p:menuitem value="#{messages.Preferences}" action="#{barBean.changePublicRelationsIndex(1)}"/>
                    </p:tabMenu>
                    <p:commandLink styleClass="disconnect" value="#{messages.Logout}" action="#{loginBean.logout()}"></p:commandLink>
                </p:panel>
            </h:form>
             
              
        </ui:composition>
    </body>
</html>

